package com.scs.application.modules.price.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.scs.application.core.entity.FlowEntity;
import com.scs.application.modules.upgrade.db.annotation.EntityClassAnnotation;
import com.scs.application.modules.upgrade.db.annotation.EntityFieldAnnotation;
import com.scs.application.modules.upgrade.db.annotation.EntityIndexAnnotation;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;
/**
 */
@Data
@Accessors(chain = true)
@EntityClassAnnotation(remark = "调价表")
@TableName("price_adjustment")
@EntityIndexAnnotation(ux = {"adjust_key"})
public class Adjustment extends FlowEntity {


    // id ,在父类中处理

    @EntityFieldAnnotation(
            text = "调价日期",
            length = "",
            not_null = true,
            default_value = "",
            comment = ""
    )
    private Date adjustDate;

    @EntityFieldAnnotation(
            text = "生效日期",
            length = "",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private Date effectiveDate;

    @EntityFieldAnnotation(
            text = "调价单号",
            length = "20",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private String adjustKey;

    @EntityFieldAnnotation(
            text = "调价类型",
            length = "30",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private String adjustType;

    @EntityFieldAnnotation(
            text = "调价人",
            length = "50",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private String adjustUser;

    @EntityFieldAnnotation(
            text = "备注",
            length = "200",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private String remark;


    // creator ,在父类中处理


    // gmt_create ,在父类中处理


    // modifier ,在父类中处理


    // gmt_modified ,在父类中处理

}
